package com.kaiwukj.android.ufamily.mvp.ui.adapter;

import androidx.annotation.Nullable;

import com.blankj.utilcode.util.StringUtils;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.kaiwukj.android.ufamily.R;
import com.kaiwukj.android.ufamily.mvp.http.entity.bean.PayFeeHistoryDetailBean;

import java.util.List;

/**
 * Created by Administrator on 2019/10/25
 */
public class PayFeeHistoryDetailAdapter extends BaseQuickAdapter<PayFeeHistoryDetailBean, BaseViewHolder> {

    public PayFeeHistoryDetailAdapter(@Nullable List<PayFeeHistoryDetailBean> data) {
        super(R.layout.item_payfee_history_detail, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PayFeeHistoryDetailBean item) {
        String value = "";
        if (!StringUtils.isEmpty(item.getVaule())) {
            value = item.getVaule();
        }
        helper.setText(R.id.tv_key, item.getKey());
        helper.setText(R.id.tv_value, value);
    }
}
